# eric7.WebBrowser.WebAuth.Fido2PinDialog

Module implementing a dialog to enter the current and potentially new PIN.

### Global Attributes

None

### Classes

Fido2PinDialog | Class implementing a dialog to enter the current and potentially new PIN.
Fido2PinDialogMode | Class defining the various PIN dialog mode.

### Functions

None

## Fido2PinDialog

Class implementing a dialog to enter the current and potentially new PIN.

### Derived from

QDialog, Ui_Fido2PinDialog

### Class Attributes

None

### Class Methods

None

### Methods

Fido2PinDialog | Constructor
__checkPins | Private slot to check the entered PIN(s).
__showPinErrors | Private method to show some error messages.
__togglePinConfirmationVisibility | Private slot to toggle the PIN confirmation entry visibility depending on the visibility of the new PIN contents.
getPins | Public method to get the entered PINs.

### Static Methods

None

#### Fido2PinDialog (Constructor)

Fido2PinDialog(mode, title, message, minLength, retries, parent=None)

Constructor

mode (Fido2PinDialogMode)
  mode of the dialog
title (str)
  header title to be shown
message (str)
  more decriptive text to be shown
minLength (int)
  minimum PIN length
retries (int)
  number of attempts remaining before the security key get locked
parent (QWidget (optional))
  reference to the parent widget (defaults to None)

#### Fido2PinDialog.__checkPins

__checkPins()

Private slot to check the entered PIN(s).

Appropriate error messages are shown in case of issues and the state of the OK button is set accordingly.

#### Fido2PinDialog.__showPinErrors

__showPinErrors(errorMessages)

Private method to show some error messages.

errorMessages (list of str)
  list of error messages

#### Fido2PinDialog.__togglePinConfirmationVisibility

__togglePinConfirmationVisibility(checked)

Private slot to toggle the PIN confirmation entry visibility depending on the visibility of the new PIN contents.

checked (bool)
  state of the new PIN visibility

#### Fido2PinDialog.getPins

getPins()

Public method to get the entered PINs.

Return:
  tuple containing the current and new PIN

Return Type:
  tuple of (str, str)

Up

## Fido2PinDialogMode

Class defining the various PIN dialog mode.

### Derived from

enum.Enum

### Class Attributes

CHANGE
GET
SET

### Class Methods

None

### Methods

None

### Static Methods

None

Up